﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000457 RID: 1111
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class EnterFantasticStoryActivityStageCsReq : IMessage<EnterFantasticStoryActivityStageCsReq>, IMessage, IEquatable<EnterFantasticStoryActivityStageCsReq>, IDeepCloneable<EnterFantasticStoryActivityStageCsReq>, IBufferMessage
	{
		// Token: 0x17000E42 RID: 3650
		// (get) Token: 0x060031E8 RID: 12776 RVA: 0x00088F33 File Offset: 0x00087133
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<EnterFantasticStoryActivityStageCsReq> Parser
		{
			get
			{
				return EnterFantasticStoryActivityStageCsReq._parser;
			}
		}

		// Token: 0x17000E43 RID: 3651
		// (get) Token: 0x060031E9 RID: 12777 RVA: 0x00088F3A File Offset: 0x0008713A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return EnterFantasticStoryActivityStageCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000E44 RID: 3652
		// (get) Token: 0x060031EA RID: 12778 RVA: 0x00088F4C File Offset: 0x0008714C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return EnterFantasticStoryActivityStageCsReq.Descriptor;
			}
		}

		// Token: 0x060031EB RID: 12779 RVA: 0x00088F53 File Offset: 0x00087153
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterFantasticStoryActivityStageCsReq()
		{
		}

		// Token: 0x060031EC RID: 12780 RVA: 0x00088F74 File Offset: 0x00087174
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterFantasticStoryActivityStageCsReq(EnterFantasticStoryActivityStageCsReq other) : this()
		{
			this.battleId_ = other.battleId_;
			this.avatarList_ = other.avatarList_.Clone();
			this.buffList_ = other.buffList_.Clone();
			this.aIHBDNKBNMH_ = other.aIHBDNKBNMH_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060031ED RID: 12781 RVA: 0x00088FD2 File Offset: 0x000871D2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterFantasticStoryActivityStageCsReq Clone()
		{
			return new EnterFantasticStoryActivityStageCsReq(this);
		}

		// Token: 0x17000E45 RID: 3653
		// (get) Token: 0x060031EE RID: 12782 RVA: 0x00088FDA File Offset: 0x000871DA
		// (set) Token: 0x060031EF RID: 12783 RVA: 0x00088FE2 File Offset: 0x000871E2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BattleId
		{
			get
			{
				return this.battleId_;
			}
			set
			{
				this.battleId_ = value;
			}
		}

		// Token: 0x17000E46 RID: 3654
		// (get) Token: 0x060031F0 RID: 12784 RVA: 0x00088FEB File Offset: 0x000871EB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<FFMHCHHHGBA> AvatarList
		{
			get
			{
				return this.avatarList_;
			}
		}

		// Token: 0x17000E47 RID: 3655
		// (get) Token: 0x060031F1 RID: 12785 RVA: 0x00088FF3 File Offset: 0x000871F3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> BuffList
		{
			get
			{
				return this.buffList_;
			}
		}

		// Token: 0x17000E48 RID: 3656
		// (get) Token: 0x060031F2 RID: 12786 RVA: 0x00088FFB File Offset: 0x000871FB
		// (set) Token: 0x060031F3 RID: 12787 RVA: 0x00089003 File Offset: 0x00087203
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AIHBDNKBNMH
		{
			get
			{
				return this.aIHBDNKBNMH_;
			}
			set
			{
				this.aIHBDNKBNMH_ = value;
			}
		}

		// Token: 0x060031F4 RID: 12788 RVA: 0x0008900C File Offset: 0x0008720C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as EnterFantasticStoryActivityStageCsReq);
		}

		// Token: 0x060031F5 RID: 12789 RVA: 0x0008901C File Offset: 0x0008721C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(EnterFantasticStoryActivityStageCsReq other)
		{
			return other != null && (other == this || (this.BattleId == other.BattleId && this.avatarList_.Equals(other.avatarList_) && this.buffList_.Equals(other.buffList_) && this.AIHBDNKBNMH == other.AIHBDNKBNMH && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060031F6 RID: 12790 RVA: 0x00089090 File Offset: 0x00087290
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.BattleId != 0U)
			{
				num ^= this.BattleId.GetHashCode();
			}
			num ^= this.avatarList_.GetHashCode();
			num ^= this.buffList_.GetHashCode();
			if (this.AIHBDNKBNMH != 0U)
			{
				num ^= this.AIHBDNKBNMH.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060031F7 RID: 12791 RVA: 0x00089104 File Offset: 0x00087304
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060031F8 RID: 12792 RVA: 0x0008910C File Offset: 0x0008730C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060031F9 RID: 12793 RVA: 0x00089118 File Offset: 0x00087318
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.avatarList_.WriteTo(ref output, EnterFantasticStoryActivityStageCsReq._repeated_avatarList_codec);
			this.buffList_.WriteTo(ref output, EnterFantasticStoryActivityStageCsReq._repeated_buffList_codec);
			if (this.BattleId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.BattleId);
			}
			if (this.AIHBDNKBNMH != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.AIHBDNKBNMH);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060031FA RID: 12794 RVA: 0x00089194 File Offset: 0x00087394
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.BattleId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BattleId);
			}
			num += this.avatarList_.CalculateSize(EnterFantasticStoryActivityStageCsReq._repeated_avatarList_codec);
			num += this.buffList_.CalculateSize(EnterFantasticStoryActivityStageCsReq._repeated_buffList_codec);
			if (this.AIHBDNKBNMH != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AIHBDNKBNMH);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060031FB RID: 12795 RVA: 0x00089210 File Offset: 0x00087410
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(EnterFantasticStoryActivityStageCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.BattleId != 0U)
			{
				this.BattleId = other.BattleId;
			}
			this.avatarList_.Add(other.avatarList_);
			this.buffList_.Add(other.buffList_);
			if (other.AIHBDNKBNMH != 0U)
			{
				this.AIHBDNKBNMH = other.AIHBDNKBNMH;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060031FC RID: 12796 RVA: 0x00089282 File Offset: 0x00087482
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060031FD RID: 12797 RVA: 0x0008928C File Offset: 0x0008748C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 64U)
				{
					if (num == 10U)
					{
						this.avatarList_.AddEntriesFrom(ref input, EnterFantasticStoryActivityStageCsReq._repeated_avatarList_codec);
						continue;
					}
					if (num == 64U)
					{
						goto IL_49;
					}
				}
				else
				{
					if (num == 66U)
					{
						goto IL_49;
					}
					if (num == 72U)
					{
						this.BattleId = input.ReadUInt32();
						continue;
					}
					if (num == 96U)
					{
						this.AIHBDNKBNMH = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				continue;
				IL_49:
				this.buffList_.AddEntriesFrom(ref input, EnterFantasticStoryActivityStageCsReq._repeated_buffList_codec);
			}
		}

		// Token: 0x0400138C RID: 5004
		private static readonly MessageParser<EnterFantasticStoryActivityStageCsReq> _parser = new MessageParser<EnterFantasticStoryActivityStageCsReq>(() => new EnterFantasticStoryActivityStageCsReq());

		// Token: 0x0400138D RID: 5005
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400138E RID: 5006
		public const int BattleIdFieldNumber = 9;

		// Token: 0x0400138F RID: 5007
		private uint battleId_;

		// Token: 0x04001390 RID: 5008
		public const int AvatarListFieldNumber = 1;

		// Token: 0x04001391 RID: 5009
		private static readonly FieldCodec<FFMHCHHHGBA> _repeated_avatarList_codec = FieldCodec.ForMessage<FFMHCHHHGBA>(10U, FFMHCHHHGBA.Parser);

		// Token: 0x04001392 RID: 5010
		private readonly RepeatedField<FFMHCHHHGBA> avatarList_ = new RepeatedField<FFMHCHHHGBA>();

		// Token: 0x04001393 RID: 5011
		public const int BuffListFieldNumber = 8;

		// Token: 0x04001394 RID: 5012
		private static readonly FieldCodec<uint> _repeated_buffList_codec = FieldCodec.ForUInt32(66U);

		// Token: 0x04001395 RID: 5013
		private readonly RepeatedField<uint> buffList_ = new RepeatedField<uint>();

		// Token: 0x04001396 RID: 5014
		public const int AIHBDNKBNMHFieldNumber = 12;

		// Token: 0x04001397 RID: 5015
		private uint aIHBDNKBNMH_;
	}
}
